package com.ds.list.arraylist;

import org.junit.Test;

public class Test1 {
	
	@Test
	public  void test() {
		
		MyArrayList<String> myList = new MyArrayList<String>();
		
		System.out.println(myList);
		
		myList.add("aaa");
		myList.add("bbb");
		myList.add("ccc");
		
		System.out.println(myList);
		
		for(String s : myList) {
			System.out.println(s);
		}
		
		myList.remove(0);
		myList.remove("bbb");
		
		myList.add(0,"ddd");
		
		System.out.println(myList);
		
		for(int i = 0; i < 100 ; i++) {
			myList.add(String.valueOf(i));
		}
		
		System.out.println(myList);
		
		
		
		
	}
	
}
